<?php

/* @var $this \yii\web\View */
/* @var $content string */

use app\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use app\models\Menu;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<div class="main-container container-fluid">
    <div class="page-container">
        <!-- 起：侧边栏 -->
        <div class="page-sidebar" id="sidebar">
            <?= $this->render('sidebar', ['menu'=>Menu::tree()]);?>
        </div>
        <!-- 终：侧边栏 -->

        <!-- 始：内容页 -->
        <div class="page-content">
            <!-- 始：面包屑 -->
            <div class="page-breadcrumbs">
                <?= $this->render('breadcrumb');?>
            </div>
            <!-- 终：面包屑 -->

            <!-- 始：标题栏 -->
            <div class="page-header position-relative">
                <?= $this->render('page-header');?>
            </div>
            <!-- 终：标题栏 -->

            <!-- 始：详情页面 -->
            <div class="page-body">
                <div class="widget-body">
                    <?= $content ?>
                </div>
            </div>
            <!-- 终：页面详情 -->
        </div>
        <!-- 终：内容页 -->
    </div>
</div>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
